package com.wn.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
 * (Hotelinfo)实体类
 *
 * @author makejava
 * @since 2020-10-26 09:30:31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Hotelinfo implements Serializable {
    private static final long serialVersionUID = 137825045339190225L;

    private String id;
    @Size(max = 50,message = "酒店名字长度小于50")
    private String hotelname;
    private String hotelPhoto;
    /**
     * 区域表外键
     */
    @NotEmpty(message = "区域区域不能为空")
    private String areaid;
    @Size(max = 50,message = "房间类型长度小于50")
    private String roomtype;
    @NotEmpty(message = "价格不能为空")
    private String roomPhoto;

    private String hotelleve;

    @NotNull(message = "价格不能为空")
    private Double hotelprice;

    private String hotelservice;
    @Size(min=2,max = 50,message = "地址长度2-50")
    private String hoteladdress;

    @Size(min=2,max = 50,message = "联系人长度2-50")
    private String contactperson;

    @Size(min = 11,max = 11,message = "电话长度要在11位")
    private String contactphone;

    private String createuserid;

    private Date createtime;

    private String updatauserid;

    private Date updatetime;
    /**
     * 0未删除1已删除
     */
    private Integer isdeleted;
    /**
     * 经度
     */
    private Double longitude;
    /**
     * 纬度
     */
    private Double latitude;
    /**
     * 0热门，1不是热门
     */
    private Integer isHot;

    //地区
    private  Area area;




}
